<html xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <title>后台管理</title>
  <!-- 所有script封装到一起 -->
  <div th:replace="admin/common/scriptBar :: script"  ></div>
</head>
<body id="page-top">
<div id="wrapper" class="set-min-height">
  <div th:replace="admin/common/leftPageBar :: leftPage"  ></div>
  <div id="content-wrapper" class="d-flex flex-column">
    <!-- 页面开始 -->
    <div id="content">
      <div th:replace="admin/common/headPageBar :: headPage"  ></div>
      <!-- 页面内容开始 -->
      <div class="container-fluid">
          <div class="card-body">
              <div class="table-responsive">
                  <table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
                      <thead>
                      <tr>
                          <th>管理员ID</th>
                          <th>名字</th>
                          <th>性别</th>
                          <th>地址</th>
                          <th>电话</th>
                          <th>等级</th>
                          <th>操作</th>
                      </tr>
                      </thead>
                      <tbody>
                      <tr  th:each="u:${adminInfo}">
                          <td th:text="${u['adminId']}"></td>
                          <td th:text="${u['adminName']}"></td>
                          <td th:text="${u['adminSex']}"></td>
                          <td th:text="${u['adminAddress']}"></td>
                          <td th:text="${u['adminPhone']}"></td>
                          <td th:text="${u['adminLevel']}"></td>
                          <td>
                              <a class="btn btn-primary btn-user" th:href ="@{'./browseAdminInfo?adminId=' + ${u['adminId']}}">查看</a>
                              <a class="btn btn-primary btn-user" th:href ="@{'./updateAdminInfo?adminId=' + ${u['adminId']}}">修改</a>
                          </td>
                      </tr>
                      </tbody>
                  </table>
                  <div style="float: right">
                      <a class="btn btn-primary btn-user" href ="./insertAdminInfoView">添加</a>
                  </div>
              </div>
          </div>
      </div>
      <!-- 页面内容结束 -->

    </div>
    <!-- 页面结束 -->
    <div th:replace="admin/common/footerBar :: footer"  ></div>
  </div>
</div>
</body>
</html>
